<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2008 rel. 2 sp2 (http://www.altova.com) by 3ddown.com (no) -->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:template match="/">
		<infopost-request>
			<xsl:for-each select="request">
				<request-head>
					<trans-id>
						<xsl:value-of select="main/transNo"/>
					</trans-id>
					<xsl:call-template name="TransTypeCode">
						<xsl:with-param name="srcCode" select="main/transType"/>
					</xsl:call-template>
					<insu-id/>
					<trans-date>
						<xsl:value-of select="main/transDate"/>
					</trans-date>
					<trans-time>
						<xsl:value-of select="concat(substring(string(main/transTime),1,2),substring(string(main/transTime),4,2),substring(string(main/transTime),7,2))"/>
					</trans-time>
					<area/>
					<bank>
						<xsl:value-of select="proposal/proposalInfo/branchBank"/>
					</bank>
					<branch/>
					<post>
						<xsl:value-of select="proposal/proposalInfo/agencyCode"/>
					</post>
					<agency-hand>
						<xsl:value-of select="proposal/proposalInfo/agentName"/>
					</agency-hand>
					<authorized/>
				</request-head>
				<xsl:choose>
					<xsl:when test="main/transType = 1001 or main/transType = 1002">
						<request-newbiz>
							<request-underwriting>
								<application>
									<apply-code>
										<xsl:value-of select="proposal/proposalInfo/proposalNumber"/>
									</apply-code>
									<apply-date>
										<xsl:value-of select="proposal/proposalInfo/applyDate"/>
									</apply-date>
									<validate-date/>
									<sell-way>3</sell-way>
									<policy-type>
										<xsl:value-of select="proposal/proposalInfo/channelType"/>
									</policy-type>
									<group-single>2</group-single>
									<branch-bank/>
									<agency-code>
										<xsl:value-of select="proposal/proposalInfo/agencyCode"/>
									</agency-code>
									<agency-hand>
										<xsl:value-of select="proposal/proposalInfo/agencyHandName"/>
									</agency-hand>
									<agent-code>
										<xsl:value-of select="proposal/proposalInfo/agentCode"/>
									</agent-code>
									<agent-name>
										<xsl:value-of select="proposal/proposalInfo/agentName"/>
									</agent-name>
									<agent-tel>
										<xsl:value-of select="proposal/proposalInfo/agentTel"/>
									</agent-tel>
									<pkg-unit>
										<xsl:value-of select="proposal/proposalInfo/planUnit"/>
									</pkg-unit>
									<bank-code>
										<xsl:value-of select="proposal/paymentMethod/bankCode"/>
									</bank-code>
									<account-type>7</account-type>
									<account-name>
										<xsl:value-of select="proposal/paymentMethod/accountName"/>
									</account-name>
									<bank-account>
										<xsl:value-of select="proposal/paymentMethod/bankAccount"/>
									</bank-account>
									<pay-mode>
										<xsl:value-of select="proposal/paymentMethod/payMode"/>
									</pay-mode>
									<pay-next>
										<xsl:value-of select="proposal/paymentMethod/payNext"/>
									</pay-next>
									<overdue-manage>1</overdue-manage>
									<over-manage>2</over-manage>
									<deliver-type>4</deliver-type>
									<currency-code>1</currency-code>
									<assumpsit/>
									<answer-type>1</answer-type>
									<answer-phone/>
									<answer-assumpsit/>
									<health-notice>Y</health-notice>
									<policy-pwd/>
									<print-code/>
									<column1/>
									<column2/>
									<column3/>
									<column4/>
									<column5/>
									<acc-bankname>
										<xsl:value-of select="proposal/paymentMethod/accountName"/>
									</acc-bankname>
									<bank-accno>
										<xsl:value-of select="proposal/paymentMethod/bankAccount"/>
									</bank-accno>
									<xsl:choose>
										<xsl:when test="main/transType = 1002">
											<premium>
												<xsl:value-of select="proposal/proposalInfo/actPremium"/>
											</premium>
										</xsl:when>
									</xsl:choose>
									<xsl:for-each select="proposal/policyHolder">
										<policy-holder>
											<real-name>
												<xsl:value-of select="firstName"/>
											</real-name>
											<gender>
												<xsl:value-of select="gender"/>
											</gender>
											<birthday>
												<xsl:value-of select="birthday"/>
											</birthday>
											<marriage-id>
												<xsl:value-of select="marriageId"/>
											</marriage-id>
											<xsl:choose>
												<xsl:when test="substring(string(/request/proposal/proposalInfo/proposalNumber),16,2) = '37' ">
													<xsl:choose>
														<xsl:when test="certiType = '1' or certiType = '2' or certiType = '4' or certiType = '5' or certiType = '7'  or certiType = '8'">
															<nationality>37</nationality>
														</xsl:when>
														<xsl:when test="certiType = '3' or certiType = '6' or certiType = '9'">
															<nationality/>
														</xsl:when>
														<xsl:otherwise>
															<nationality>
																<xsl:value-of select="nationality"/>
															</nationality>
														</xsl:otherwise>
													</xsl:choose>
												</xsl:when>
												<xsl:otherwise>
													<nationality>
														<xsl:value-of select="nationality"/>
													</nationality>
												</xsl:otherwise>
											</xsl:choose>
											<race/>
											<homeplace/>
											<seat-address/>
											<certi-type>
												<xsl:value-of select="certiType"/>
											</certi-type>
											<certi-code>
												<xsl:value-of select="certiCode"/>
											</certi-code>
											<certi-start-date/>
											<certi-end-date>
												<xsl:value-of select="certiExpireDate"/>
											</certi-end-date>
											<city-province>
												<xsl:value-of select="STATE"/>
											</city-province>
											<district>
												<xsl:value-of select="CITY"/>
											</district>
											<ward>
												<xsl:value-of select="Ward"/>
											</ward>
											<rela-address>
												<xsl:value-of select="address1"/>
											</rela-address>
											<rela-zip>
												<xsl:value-of select="postalCode"/>
											</rela-zip>
											<day-phone>
												<xsl:value-of select="homeTel"/>
											</day-phone>
											<night-phone>
												<xsl:value-of select="homeTel"/>
											</night-phone>
											<celler>
												<xsl:value-of select="mobile"/>
											</celler>
											<email>
												<xsl:value-of select="email"/>
											</email>
											<pay-address>
												<xsl:value-of select="address1"/>
											</pay-address>
											<pay-zip>
												<xsl:value-of select="postalCode"/>
											</pay-zip>
											<job-com>
												<xsl:value-of select="workCompany"/>
											</job-com>
											<job-address/>
											<job-zip/>
											<industy/>
											<title/>
											<job-name>
												<xsl:value-of select="job"/>
											</job-name>
											<pt-job-name/>
											<job-code>
												<xsl:value-of select="jobCateId"/>
											</job-code>
											<relation-with-main-insured/>
											<smoking>N</smoking>
											<yearly-income>
												<xsl:value-of select="income"/>
											</yearly-income>
											<income-source>
												<xsl:value-of select="incomeSource"/>
											</income-source>
											<social-security/>
											<height>
												<xsl:value-of select="height"/>
											</height>
											<weight>
												<xsl:value-of select="weight"/>
											</weight>
											<valid-year/>
											<social-security-status>
												<xsl:value-of select="socialSecurityStatus"/>
											</social-security-status>
										</policy-holder>
									</xsl:for-each>
									<life-assureds>
										<xsl:for-each select="proposal/insureds/insured">
											<life-assured>
												<la-no>
													<xsl:number value="position()"/>
												</la-no>
												<relation-with-policy-holder>
													<xsl:value-of select="relationToPh"/>
												</relation-with-policy-holder>
												<relation-with-main-insured>
													<xsl:value-of select="relationToLA1"/>
												</relation-with-main-insured>
												<real-name>
													<xsl:call-template name="switchInusredValue">
														<xsl:with-param name="srcRelaToPh" select="relationToPh"/>
														<xsl:with-param name="srcInusredValue" select="firstName"/>
														<xsl:with-param name="srcPHValue" select="/request/proposal/policyHolder[1]/firstName"/>
													</xsl:call-template>
												</real-name>
												<gender>
													<xsl:call-template name="switchInusredValue">
														<xsl:with-param name="srcRelaToPh" select="relationToPh"/>
														<xsl:with-param name="srcInusredValue" select="gender"/>
														<xsl:with-param name="srcPHValue" select="/request/proposal/policyHolder[1]/gender"/>
													</xsl:call-template>
												</gender>
												<birthday>
													<xsl:call-template name="switchInusredValue">
														<xsl:with-param name="srcRelaToPh" select="relationToPh"/>
														<xsl:with-param name="srcInusredValue" select="birthday"/>
														<xsl:with-param name="srcPHValue" select="/request/proposal/policyHolder[1]/birthday"/>
													</xsl:call-template>
												</birthday>
												<marriage-id>
													<xsl:call-template name="switchInusredValue">
														<xsl:with-param name="srcRelaToPh" select="relationToPh"/>
														<xsl:with-param name="srcInusredValue" select="marriagedId"/>
														<xsl:with-param name="srcPHValue" select="/request/proposal/policyHolder[1]/marriagedId"/>
													</xsl:call-template>
												</marriage-id>
												<xsl:choose>
													<xsl:when test="substring(string(/request/proposal/proposalInfo/proposalNumber),16,2) = '37' ">
														<xsl:choose>
															<xsl:when test="certiType = '1' or certiType = '2' or certiType = '4' or certiType = '5' or certiType = '7'  or certiType = '8'">
																<nationality>37</nationality>
															</xsl:when>
															<xsl:when test="certiType = '3' or certiType = '6' or certiType = '9'">
																<nationality/>
															</xsl:when>
															<xsl:otherwise>
																<nationality>
																	<xsl:call-template name="switchInusredValue">
																		<xsl:with-param name="srcRelaToPh" select="relationToPh"/>
																		<xsl:with-param name="srcInusredValue" select="nationality"/>
																		<xsl:with-param name="srcPHValue" select="/request/proposal/policyHolder[1]/nationality"/>
																	</xsl:call-template>
																</nationality>
															</xsl:otherwise>
														</xsl:choose>
													</xsl:when>
													<xsl:otherwise>
														<nationality>
															<xsl:call-template name="switchInusredValue">
																<xsl:with-param name="srcRelaToPh" select="relationToPh"/>
																<xsl:with-param name="srcInusredValue" select="nationality"/>
																<xsl:with-param name="srcPHValue" select="/request/proposal/policyHolder[1]/nationality"/>
															</xsl:call-template>
														</nationality>
													</xsl:otherwise>
												</xsl:choose>
												<race/>
												<homeplace/>
												<seat-address/>
												<certi-type>
													<xsl:call-template name="switchInusredValue">
														<xsl:with-param name="srcRelaToPh" select="relationToPh"/>
														<xsl:with-param name="srcInusredValue" select="certiType"/>
														<xsl:with-param name="srcPHValue" select="/request/proposal/policyHolder[1]/certiType"/>
													</xsl:call-template>
												</certi-type>
												<certi-code>
													<xsl:call-template name="switchInusredValue">
														<xsl:with-param name="srcRelaToPh" select="relationToPh"/>
														<xsl:with-param name="srcInusredValue" select="certiCode"/>
														<xsl:with-param name="srcPHValue" select="/request/proposal/policyHolder[1]/certiCode"/>
													</xsl:call-template>
												</certi-code>
												<certi-start-date/>
												<certi-end-date>
													<xsl:call-template name="switchInusredValue">
														<xsl:with-param name="srcRelaToPh" select="relationToPh"/>
														<xsl:with-param name="srcInusredValue" select="certiExpireDate"/>
														<xsl:with-param name="srcPHValue" select="/request/proposal/policyHolder[1]/certiExpireDate"/>
													</xsl:call-template>
												</certi-end-date>
												<city-province>
													<xsl:call-template name="switchInusredValue">
														<xsl:with-param name="srcRelaToPh" select="relationToPh"/>
														<xsl:with-param name="srcInusredValue" select="cityProvince"/>
														<xsl:with-param name="srcPHValue" select="/request/proposal/policyHolder[1]/cityProvince"/>
													</xsl:call-template>
												</city-province>
												<district>
													<xsl:call-template name="switchInusredValue">
														<xsl:with-param name="srcRelaToPh" select="relationToPh"/>
														<xsl:with-param name="srcInusredValue" select="district"/>
														<xsl:with-param name="srcPHValue" select="/request/proposal/policyHolder[1]/district"/>
													</xsl:call-template>
												</district>
												<ward>
													<xsl:call-template name="switchInusredValue">
														<xsl:with-param name="srcRelaToPh" select="relationToPh"/>
														<xsl:with-param name="srcInusredValue" select="ward"/>
														<xsl:with-param name="srcPHValue" select="/request/proposal/policyHolder[1]/ward"/>
													</xsl:call-template>
												</ward>
												<rela-address>
													<xsl:call-template name="switchInusredValue">
														<xsl:with-param name="srcRelaToPh" select="relationToPh"/>
														<xsl:with-param name="srcInusredValue" select="address1"/>
														<xsl:with-param name="srcPHValue" select="/request/proposal/policyHolder[1]/address1"/>
													</xsl:call-template>
												</rela-address>
												<rela-zip>
													<xsl:call-template name="switchInusredValue">
														<xsl:with-param name="srcRelaToPh" select="relationToPh"/>
														<xsl:with-param name="srcInusredValue" select="postalCode"/>
														<xsl:with-param name="srcPHValue" select="/request/proposal/policyHolder[1]/postalCode"/>
													</xsl:call-template>
												</rela-zip>
												<night-phone>
													<xsl:call-template name="switchInusredValue">
														<xsl:with-param name="srcRelaToPh" select="relationToPh"/>
														<xsl:with-param name="srcInusredValue" select="homeTel"/>
														<xsl:with-param name="srcPHValue" select="/request/proposal/policyHolder[1]/homeTel"/>
													</xsl:call-template>
												</night-phone>
												<day-phone>
													<xsl:call-template name="switchInusredValue">
														<xsl:with-param name="srcRelaToPh" select="relationToPh"/>
														<xsl:with-param name="srcInusredValue" select="homeTel"/>
														<xsl:with-param name="srcPHValue" select="/request/proposal/policyHolder[1]/homeTel"/>
													</xsl:call-template>
												</day-phone>
												<celler>
													<xsl:call-template name="switchInusredValue">
														<xsl:with-param name="srcRelaToPh" select="relationToPh"/>
														<xsl:with-param name="srcInusredValue" select="mobile"/>
														<xsl:with-param name="srcPHValue" select="/request/proposal/policyHolder[1]/mobile"/>
													</xsl:call-template>
												</celler>
												<email>
													<xsl:call-template name="switchInusredValue">
														<xsl:with-param name="srcRelaToPh" select="relationToPh"/>
														<xsl:with-param name="srcInusredValue" select="email"/>
														<xsl:with-param name="srcPHValue" select="/request/proposal/policyHolder[1]/email"/>
													</xsl:call-template>
												</email>
												<job-com>
													<xsl:call-template name="switchInusredValue">
														<xsl:with-param name="srcRelaToPh" select="relationToPh"/>
														<xsl:with-param name="srcInusredValue" select="workCompany"/>
														<xsl:with-param name="srcPHValue" select="/request/proposal/policyHolder[1]/workCompany"/>
													</xsl:call-template>
												</job-com>
												<job-address/>
												<job-zip/>
												<industy/>
												<title/>
												<job-name>
													<xsl:call-template name="switchInusredValue">
														<xsl:with-param name="srcRelaToPh" select="relationToPh"/>
														<xsl:with-param name="srcInusredValue" select="job"/>
														<xsl:with-param name="srcPHValue" select="/request/proposal/policyHolder[1]/job"/>
													</xsl:call-template>
												</job-name>
												<pt-job-name/>
												<job-code>
													<xsl:call-template name="switchInusredValue">
														<xsl:with-param name="srcRelaToPh" select="relationToPh"/>
														<xsl:with-param name="srcInusredValue" select="jobCateId"/>
														<xsl:with-param name="srcPHValue" select="/request/proposal/policyHolder[1]/jobCateId"/>
													</xsl:call-template>
												</job-code>
												<smoking>N</smoking>
												<yearly-income>
													<xsl:call-template name="switchInusredValue">
														<xsl:with-param name="srcRelaToPh" select="relationToPh"/>
														<xsl:with-param name="srcInusredValue" select="income"/>
														<xsl:with-param name="srcPHValue" select="/request/proposal/policyHolder[1]/income"/>
													</xsl:call-template>
												</yearly-income>
												<income-source>
													<xsl:call-template name="switchInusredValue">
														<xsl:with-param name="srcRelaToPh" select="relationToPh"/>
														<xsl:with-param name="srcInusredValue" select="incomeSource"/>
														<xsl:with-param name="srcPHValue" select="/request/proposal/policyHolder[1]/incomeSource"/>
													</xsl:call-template>
												</income-source>
												<height>
													<xsl:call-template name="switchInusredValue">
														<xsl:with-param name="srcRelaToPh" select="relationToPh"/>
														<xsl:with-param name="srcInusredValue" select="height"/>
														<xsl:with-param name="srcPHValue" select="/request/proposal/policyHolder[1]/height"/>
													</xsl:call-template>
												</height>
												<weight>
													<xsl:call-template name="switchInusredValue">
														<xsl:with-param name="srcRelaToPh" select="relationToPh"/>
														<xsl:with-param name="srcInusredValue" select="weight"/>
														<xsl:with-param name="srcPHValue" select="/request/proposal/policyHolder[1]/weight"/>
													</xsl:call-template>
												</weight>
												<valid-year/>
												<social-security/>
												<social-security-status>
													<xsl:call-template name="switchInusredValue">
														<xsl:with-param name="srcRelaToPh" select="relationToPh"/>
														<xsl:with-param name="srcInusredValue" select="socialSecurityStatus"/>
														<xsl:with-param name="srcPHValue" select="/request/proposal/policyHolder[1]/socialSecurityStatus"/>
													</xsl:call-template>
												</social-security-status>
											</life-assured>
										</xsl:for-each>
									</life-assureds>
									<beneficiaries>
										<xsl:for-each select="proposal/beneficiarys/beneficiary">
											<beneficiary>
												<la-no>
													<xsl:number value="position()"/>
												</la-no>
												<xsl:choose>
													<xsl:when test="designation = 1 or designation = 2 or designation = 3 or designation = 4 or designation = 5 or designation = 6 or designation = 7">
														<legal-bene-indi>Y</legal-bene-indi>
													</xsl:when>
													<xsl:otherwise>
														<legal-bene-indi>N</legal-bene-indi>
													</xsl:otherwise>
												</xsl:choose>
												<real-name>
													<xsl:value-of select="firstName"/>
												</real-name>
												<gender>
													<xsl:value-of select="gender"/>
												</gender>
												<birthday>
													<xsl:value-of select="birthday"/>
												</birthday>
												<certi-type>
													<xsl:value-of select="certiType"/>
												</certi-type>
												<certi-code>
													<xsl:value-of select="certiCode"/>
												</certi-code>
												<certi-start-date/>
												<certi-end-date>
													<xsl:value-of select="certiExpireDate"/>
												</certi-end-date>
												<xsl:choose>
													<xsl:when test="substring(string(/request/proposal/proposalInfo/proposalNumber),16,2) = '37' ">
														<xsl:choose>
															<xsl:when test="certiType = '1' or certiType = '2' or certiType = '4' or certiType = '5' or certiType = '7'  or certiType = '8'">
																<nationality>37</nationality>
															</xsl:when>
															<xsl:when test="certiType = '3' or certiType = '6' or certiType = '9'">
																<nationality/>
															</xsl:when>
															<xsl:otherwise>
																<nationality>
																	<xsl:value-of select="nationality"/>
																</nationality>
															</xsl:otherwise>
														</xsl:choose>
													</xsl:when>
													<xsl:otherwise>
														<nationality>
															<xsl:value-of select="nationality"/>
														</nationality>
													</xsl:otherwise>
												</xsl:choose>
												<relation-with-insured>
													<xsl:value-of select="designation"/>
												</relation-with-insured>
												<bene-type>2</bene-type>
												<bene-order>
													<xsl:value-of select="shareOrder"/>
												</bene-order>
												<bene-rate>
													<xsl:value-of select="shareRate"/>
												</bene-rate>
												<!---     bene-is-empty  is added as check condition       -->
												<xsl:choose>
													<xsl:when test="firstName='' and gender='' and designation='' and  certiType='' and certiCode='' and birthday='' and shareOrder='' and shareRate=''">
														<bene-is-empty>Y</bene-is-empty>
													</xsl:when>
													<xsl:otherwise>
														<bene-is-empty>N</bene-is-empty>
													</xsl:otherwise>
												</xsl:choose>
											</beneficiary>
										</xsl:for-each>
									</beneficiaries>
									<products>
										<xsl:for-each select="proposal/coverages/coverage">
											<product>
												<la-no>
													<xsl:number value="position()"/>
												</la-no>
												<product-num>100</product-num>
												<external-prd-code>
													<xsl:value-of select="internalId"/>
												</external-prd-code>
												<product-name>
													<xsl:value-of select="productName"/>
												</product-name>
												<is-waiver>N</is-waiver>
												<waiver-num/>
												<waiver-object/>
												<charge-period>
													<xsl:value-of select="chargePeriod"/>
												</charge-period>
												<charge-year>
													<xsl:value-of select="chargeYear"/>
												</charge-year>
												<coverage-period>
													<xsl:value-of select="coveragePeriod"/>
												</coverage-period>
												<coverage-year>
													<xsl:value-of select="coverageYear"/>
												</coverage-year>
												<charge-mode>
													<xsl:value-of select="initialType"/>
												</charge-mode>
												<pay-period/>
												<pay-year>
</pay-year>
												<end-period/>
												<end-year/>
												<pay-ensure/>
												<pay-type/>
												<amount>
													<xsl:value-of select="amount"/>
												</amount>
												<unit>
													<xsl:value-of select="unit"/>
												</unit>
												<discount-prem>
													<xsl:if test=" premium != ''  ">
														<xsl:value-of select="premium"/>
													</xsl:if>
												</discount-prem>
												<count-way/>
												<bonus-choice>
													<xsl:value-of select="dividendChoice"/>
												</bonus-choice>
												<xsl:choose>
													<xsl:when test="/request/main/transType = 1001">
														<deduct>
															<xsl:value-of select="deductible"/>
														</deduct>
														<pay-rate>
															<xsl:value-of select="paymentRate"/>
														</pay-rate>
													</xsl:when>
													<xsl:otherwise>
														<deduct>
															<xsl:value-of select="exemptionAmount"/>
														</deduct>
														<pay-rate>
															<xsl:value-of select="compensateRate"/>
														</pay-rate>
													</xsl:otherwise>
												</xsl:choose>
												<column1/>
												<column2/>
												<column3/>
												<column4/>
												<column5/>
												<main-riskcode/>
												<password/>
												<rate/>
												<cvali-date/>
												<autopay-flag/>
												<bonuspay-mode/>
												<sub-flag/>
												<Iscash-autopay/>
												<Iscash-joininvest/>
												<health-flag/>
												<fullbonus-getmode/>
												<first-rate/>
												<sure-rate/>
												<end-date/>
												<pay-date/>
											</product>
										</xsl:for-each>
									</products>
									<add-invest>
										<add-prem>
											<xsl:value-of select="proposal/addInvest/addPrem"/>
										</add-prem>
									</add-invest>
									<annuity-pay-plan>
										<pay-mode>
											<xsl:value-of select="proposal/annuityPayPlan/payMode"/>
										</pay-mode>
									</annuity-pay-plan>
									<notifications>
										<xsl:for-each select="proposal/declarations/declaration">
											<notification>
												<decl-version>
													<xsl:value-of select="decl_version"/>
												</decl-version>
												<customer>
													<xsl:value-of select="customer"/>
												</customer>
												<declaration-details>
													<xsl:for-each select="declarationDetails/declarationDetail">
														<declaration-detail>
															<decl-id>
																<xsl:value-of select="declId"/>
															</decl-id>
															<sort-num>
																<xsl:number value="position()"/>
															</sort-num>
															<yes-no/>
															<xsl:choose>
																<xsl:when test="file1 = 'Y'">
																	<fill1>是</fill1>
																</xsl:when>
																<xsl:when test="file1 = 'N'">
																	<fill1>否</fill1>
																</xsl:when>
																<xsl:otherwise>
																	<fill1>
																		<xsl:value-of select="file1"/>
																	</fill1>
																</xsl:otherwise>
															</xsl:choose>
															<fill2>
																<xsl:value-of select="file2"/>
															</fill2>
															<fill3>
																<xsl:value-of select="file3"/>
															</fill3>
															<fill4>
																<xsl:value-of select="file4"/>
															</fill4>
															<fill5>
																<xsl:value-of select="file5"/>
															</fill5>
															<fill6>
																<xsl:value-of select="file6"/>
															</fill6>
															<fill7>
																<xsl:value-of select="file7"/>
															</fill7>
															<fill8/>
															<fill9/>
															<fill10/>
															<notes/>
														</declaration-detail>
													</xsl:for-each>
												</declaration-details>
											</notification>
										</xsl:for-each>
									</notifications>
								</application>
							</request-underwriting>
							<xsl:choose>
								<xsl:when test="main/transType = 1002">
									<request-policy-issue>
										<apply-code>
											<xsl:value-of select="proposal/proposalInfo/proposalNumber"/>
										</apply-code>
										<uw-trans-id/>
										<invoice-code/>
										<print-code/>
										<premium>
											<xsl:if test=" proposal/proposalInfo/actPremium != '' ">
												<xsl:value-of select="proposal/proposalInfo/actPremium"/>
											</xsl:if>
										</premium>
										<allow-manual-uw>
											<xsl:value-of select="proposal/proposalInfo/allowManualUWIndi"/>
										</allow-manual-uw>
										<policy-print-type>
											<xsl:value-of select="proposal/proposalInfo/policyPrintType"/>
										</policy-print-type>
									</request-policy-issue>
								</xsl:when>
							</xsl:choose>
						</request-newbiz>
					</xsl:when>
					<xsl:when test="main/transType = 1004">
						<request-intraday-cancel>
							<apply-code>
								<xsl:value-of select="main/proposalNumber"/>
							</apply-code>
						</request-intraday-cancel>
					</xsl:when>
					<xsl:when test="main/transType = 1006">
						<request-policy-query>
							<policy-query>
								<apply-code>
									<xsl:value-of select="main/proposalNumber"/>
								</apply-code>
								<policy-code/>
								<policy-password/>
							</policy-query>
						</request-policy-query>
					</xsl:when>
					<xsl:when test="main/transType = 1003">
						<request-policy-confirm>
							<ph-email>
								<xsl:value-of select="main/phEmail"/>
							</ph-email>
							<apply-code>
								<xsl:value-of select="main/proposalNumber"/>
							</apply-code>
							<policy-print-type>
								<xsl:value-of select="main/policyPrintType"/>
							</policy-print-type>
						</request-policy-confirm>
					</xsl:when>
					<xsl:when test="main/transType = 1005">
						<request-policy-ba-cancel>
							<apply-code>
								<xsl:value-of select="main/proposalNumber"/>
							</apply-code>
							<policy-code/>
							<cause-id>
								<xsl:value-of select="main/causeCode"/>
							</cause-id>
						</request-policy-ba-cancel>
					</xsl:when>
				</xsl:choose>
			</xsl:for-each>
		</infopost-request>
	</xsl:template>
	<xsl:template name="TransTypeCode">
		<xsl:param name="srcCode"/>
		<xsl:choose>
			<xsl:when test="$srcCode =1001">
				<trans-type>104</trans-type>
			</xsl:when>
			<xsl:when test="$srcCode = 1002">
				<trans-type>102</trans-type>
			</xsl:when>
			<xsl:when test="$srcCode = 1006">
				<trans-type>106</trans-type>
			</xsl:when>
			<xsl:when test="$srcCode = 1004">
				<trans-type>201</trans-type>
			</xsl:when>
			<xsl:when test="$srcCode = 1003">
				<trans-type>108</trans-type>
			</xsl:when>
			<xsl:when test="$srcCode = 1005">
				<trans-type>204</trans-type>
			</xsl:when>
			<xsl:otherwise>
				<trans-type>000000</trans-type>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>
	<xsl:template name="switchInusredValue">
		<xsl:param name="srcRelaToPh"/>
		<xsl:param name="srcInusredValue"/>
		<xsl:param name="srcPHValue"/>
		<xsl:choose>
			<xsl:when test="$srcRelaToPh = '1'">
				<xsl:value-of select="string($srcPHValue)"/>
			</xsl:when>
			<xsl:otherwise>
				<xsl:value-of select="string($srcInusredValue)"/>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>
</xsl:stylesheet>
